import Element from 'element-ui'
import VeLine from 'v-charts/lib/line'
import Vue from 'vue'
import VueRouter from 'vue-router'
import Vuex from 'vuex'
import './assets/less/global.less'
import './assets/less/reset.less'
import { extend } from './extend'
// @ts-ignore
import { router } from '~/routers'
// @ts-ignore
import { store } from '~/store'

Vue.use(Element)
Vue.use(VueRouter)
Vue.use(extend)
Vue.component(VeLine.name, VeLine)
Vue.use(Vuex)
// Vue.prototype.xingyeURL = 'http://ufm-test.cibfintech.com/authz/oauth/authorize?scope=read&response_type=code&redirect_uri=http%3A%2F%2F118.178.57.213%2Fwxcore%2FtestAccessToken&state=test&client_id=246d06008c4f4e14afd4d204bb507e5e'
Vue.prototype.xingyeURL = 'https://ufm.cibfintech.com/authz/oauth/authorize?scope=read&response_type=code&redirect_uri=http%3a%2f%2fwechat.huipiaoxian.com%2fwxcore%2faccessToken&state=pro&client_id=193d3bd5e393432eb9724567ed810caf'
export const vue: Vue = new Vue({
  el: '#app',
  router,
  store: new Vuex.Store(store)
})
// @ts-ignore
console.log(`%c HUIPIAOXIAN %c The last build time is at ${vue.$utils.toTimeFormat(buildTime, 'yyyy-MM-dd hh:mm')} %c`,
  'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px;  color: #fff',
  'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0;  color: #fff', 'background:transparent')
